package com.ruoyi.ggsearch.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 查询结果记录对象 gg_search_result
 * 
 * @author yangjin
 * @date 2023-04-07
 */
public class GgSearchResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long keyId;

    /** 关键字 */
    @Excel(name = "关键字")
    private String keyWord;

    /** 关键字 */
    @Excel(name = "关键字")
    private String domain;

    /** 排名 */
    @Excel(name = "排名")
    private Long ranking;

    /** 查询日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date searchDay;

    /** 录入日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inputDate;

    public void setKeyId(Long keyId) 
    {
        this.keyId = keyId;
    }

    public Long getKeyId() 
    {
        return keyId;
    }
    public void setKeyWord(String keyWord) 
    {
        this.keyWord = keyWord;
    }

    public String getKeyWord() 
    {
        return keyWord;
    }
    public void setDomain(String domain) 
    {
        this.domain = domain;
    }

    public String getDomain() 
    {
        return domain;
    }
    public void setRanking(Long ranking) 
    {
        this.ranking = ranking;
    }

    public Long getRanking() 
    {
        return ranking;
    }
    public void setSearchDay(Date searchDay) 
    {
        this.searchDay = searchDay;
    }

    public Date getSearchDay() 
    {
        return searchDay;
    }
    public void setInputDate(Date inputDate) 
    {
        this.inputDate = inputDate;
    }

    public Date getInputDate() 
    {
        return inputDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("keyId", getKeyId())
            .append("keyWord", getKeyWord())
            .append("domain", getDomain())
            .append("ranking", getRanking())
            .append("searchDay", getSearchDay())
            .append("inputDate", getInputDate())
            .toString();
    }
}
